﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Guoc.Log
{
    /// <summary>
    /// 通过日志管理器写日志
    /// </summary>
   public class LogManager
    {
       
       private static ILog GetLog(ILog ilog)
       {
           if (ilog == null)
           {
               throw new NullReferenceException("日志对象为空");
           }
           else
           {
               return ilog;
           }
       }

       public static void WriteLog(string msg,string outPath)
       {
           ILog log = LogManager.GetLog(new FileLog());
           log.WriteLog(msg, outPath);
       }
    }
}
